package com.dhcc.bpm.modules.workflow.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName Approve
 * @Description  工作流审批表 实体类
 * @Author YZC
 * @Date 2019/11/19 14:46
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_approve")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Approve对象", description = "工作流审批表")
public class Approve extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 业务编号
	*/
		@ApiModelProperty(value = "业务编号")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long busNo;
	/**
	* 工作流类型
	*/
		@ApiModelProperty(value = "工作流类型")
		private String type;

	/**
	 * 路径地址
	 */
		@ApiModelProperty(value = "路径地址")
		private String url;
	/**
	* 流程id
	*/
		@ApiModelProperty(value = "流程id")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long processId;
	/**
	* 审批状态
	*/
		@ApiModelProperty(value = "审批状态")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long approvalStatus;
	/**
	* 描述
	*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;
		/**
		 * 产品id
		 */
		@ApiModelProperty(value = "产品id")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long productId;

}
